package day04;

import java.util.Scanner;

/**
 * @author yzg
 * @desc TODO
 * @date 2025/4/11
 */
public class OneArrayIsContainTarget {
    public static void main(String[] args) {
        int[] arr = {8, 4, 2, 1, 23, 344, 12};
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个整数");
        int number = sc.nextInt();
        BubbleSort.bubbleSort(arr);
        if (BinarySearch.binarySearch(arr, number) == -1) {
            System.out.println("数列中不包含此数");
        } else {
            System.out.println("数列中包含此数");
        }
    }
}